Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 17 - File Objects / File Objects Reference
Application-Defined Routines /


TQ3ObjectWriteMethod

You can define a method to write an object of your custom type to a file object.

typedef TQ3Status (*TQ3ObjectWriteMethod) (
const void *object, 
TQ3FileObject file);
object
A QuickDraw 3D object.
file
A file object.
DESCRIPTION
Your TQ3ObjectWriteMethod function should write the root object data of the object specified by the object parameter, starting at the current location in the file object specified by the file parameter. You should use the primitive data type _Write functions described in "Reading and Writing File Data," beginning on page 17-27 (for example, Q3Uns64_Write and Q3Point3D_Write).

RESULT CODES
Your TQ3ObjectWriteMethod function should return kQ3Success if it is successful and kQ3Failure otherwise.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996